<template>
  <h1>hello world</h1>
  <button @click="btn">{{ num }}</button>
</template>

<script>
// document.querySelector("h1").textContent="kkkkk"
import myDevVue from './components/myDev.vue';
export default {
  name: "App",myDevVue,
  
  data() {
    return {
      num: 0,
    };
  },
  methods: {
    btn: function () {
      // eslint-disable-next-line no-undef
     this.num="我改变了"
    },
  },
  
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
  width: 200px;
  height: 200px;
 display: block;
}
</style>
